package com.itheima.service;

import com.itheima.domain.CheckItem;
import com.itheima.result.PageResult;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional(readOnly = true)
public interface CheckItemService {
    @Transactional(readOnly = false)
    public void add(CheckItem checkItem);

    public PageResult pageQuery(Integer currentPage, Integer pageSize, String
            queryString);
    @Transactional(readOnly = false)
    public void delete(Integer id);

    @Transactional(readOnly = false)
    public void edit(CheckItem checkItem);

    public CheckItem findById(Integer id);


    List<CheckItem> findAll();
}
